package com.txts.road.app.track.model.entity;

import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.txts.road.app.common.base.BaseEntity;

/**
 * 轨迹记录实体对象
 *
 * @author baoyr
 * @since 2025-07-17 10:43
 */
@Getter
@Setter
@TableName("road_t_track_record")
public class TrackRecordEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 设备ID
     */
    private Long deviceId;
    /**
     * 轨迹名称
     */
    private String trackName;
    /**
     * 开始时间
     */
    private LocalDateTime startTime;
    /**
     * 结束时间
     */
    private LocalDateTime endTime;
    /**
     * 总里程(公里)
     */
    private BigDecimal totalDistance;
    /**
     * 总时长(秒)
     */
    private Integer totalDuration;
    /**
     * 轨迹数据(JSON格式)
     */
    private String trackData;
    /**
     * 创建时间
     */
    private LocalDateTime createdTime;
    /**
     * 创建人id
     */
    private Long createdBy;
    /**
     * 更新人id
     */
    private Long updateBy;
    /**
     * 0-有效 1-删除
     */
    private Integer state;
}
